// Copyright 2013 The Go Circuit Project
// Use of this source code is governed by the license for
// The Go Circuit Project, found in the LICENSE file.
//
// Authors:
//   2013 Petar Maymounkov <p@gocircuit.org>

package ripple

import (
	"bytes"

	"circuit/kit/iomisc"
	"circuit/kit/rh"
	"circuit/kit/rh/ns"
)

func NewHelp(screen string) rh.FID {
	return ns.RegulateFork(func() ns.UnregulatedFID {
		return ns.NewReaderFID(
			"help",
			iomisc.ReaderNopCloser(bytes.NewReader([]byte(screen))),
		)
	})
}
